class BackStagesController < ApplicationController
  before_filter :is_admin
  def show
    @admin = Valleyer.find params[:id]
    @all_articles = Article.all
    @articles = Article.paginate :conditions => ["created_at >= ? ",
      30.days.ago
    ],
      :page => params[:page_number],
      :per_page => 5,
      :order => "created_at desc"
  end

  def authorize

  end
end
